package collection;

import java.text.SimpleDateFormat;
import java.util.Date;

public class MapData {
	
	String userID, irum, phone;
	Date nal;	
	
	public MapData(String id, String irum, String phone){
		this.userID=id;
		this.irum=irum;
		this.phone=phone;
		this.nal = new Date();
	}
	
	@Override
	public String toString(){
		SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd");
		
		String temp = sdf.format(nal);
		String str = String.format("%-10s%-10s%-15s%-12s\n", userID, irum, phone, temp);
		
		return str;
	}

	
}
